﻿var _jsCheck = {
    setCookie: function (c_name, value, exdays) {
        var exdate = new Date();
        exdate.setDate(exdate.getDate() + exdays);
        var c_value = escape(value) + ((exdays == null) ? "" : "; expires=" + exdate.toUTCString());
        document.cookie = c_name + "=" + c_value;
    },
    GoPCButton: function () {
        $("#gotoPCDevice").unbind("click").click(function () {
            _jsCheck.setCookie("ohdepuserpclayout", "1", 1);
            window.location.href = "http://ohdep.net/?ohdepuserpclayout=frommobile";
        });
    }
}
$(function () {
    _jsCheck.GoPCButton();
});

